Skip to main content

Autocomplete<T>

Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public class Autocomplete<T> : TextInputBase

Properties

ViewCount

View Source
Declaration
public int ViewCount { get; set; }

PageSize

View Source
Declaration
public int PageSize { get; set; }

Multiple

View Source
Declaration
public bool Multiple { get; set; }

Options

View Source
Declaration
public List<T> Options { get; set; }

Values

View Source
Declaration
public List<T> Values { get; set; }

Match

View Source
Declaration
public Func<T, string, bool>? Match { get; set; }

Item

View Source
Declaration
public RenderFragment<T>? Item { get; set; }

Value

View Source
Declaration
public T Value { get; set; }

ValueExpression

View Source
Declaration
public Expression<Func<T>> ValueExpression { get; set; }

ValueChanged

View Source
Declaration
public EventCallback<T> ValueChanged { get; set; }

ValuesExpression

View Source
Declaration
public Expression<Func<List<T>>> ValuesExpression { get; set; }

ValuesChanged

View Source
Declaration
public EventCallback<List<T>> ValuesChanged { get; set; }

Inherited Properties

AdditionalAttributes

Gets or sets a collection of additional attributes that will be applied to the created element.

View Source
Declaration
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }

ErrorField

View Source
Declaration
public ResponseError? ErrorField { get; }

ErrorFieldMessage

View Source
Declaration
public string ErrorFieldMessage { get; }

FieldClass

Class for outer container element

View Source
Declaration
public string FieldClass { get; set; }

FieldIdentifier

Gets the ServiceStack.Blazor.Components.TextInputBase.FieldIdentifier for the bound value.

View Source
Declaration
protected AspNetCore.Components.Forms.FieldIdentifier FieldIdentifier { get; set; }

HasErrorField

View Source
Declaration
public bool HasErrorField { get; }

Help

Additional help text for Input Control, defaults to split Pascal Case Id. Set to empty string "" to hide

View Source
Declaration
public string Help { get; set; }

Id

View Source
Declaration
public virtual string Id { get; set; }

IncludeAttributes

View Source
Declaration
public virtual IReadOnlyDictionary<string, object>? IncludeAttributes { get; }

IsCheckbox

View Source
Declaration
protected bool IsCheckbox { get; }

IsSelect

View Source
Declaration
protected bool IsSelect { get; }

Label

Label assigned to the Input Control, defaults to split Pascal Case Id. Set to empty string "" to hide

View Source
Declaration
public string Label { get; set; }

LabelClass

Class for Input Label

View Source
Declaration
public string LabelClass { get; set; }

placeholder

View Source
Declaration
public string placeholder { get; set; }

Size

View Source
Declaration
public string Size { get; set; }

type

View Source
Declaration
public string type { get; set; }

UseHelp

View Source
Declaration
protected virtual string UseHelp { get; }

UseLabel

View Source
Declaration
protected virtual string UseLabel { get; }

UsePlaceholder

View Source
Declaration
protected virtual string UsePlaceholder { get; }

UseType

View Source
Declaration
protected virtual string UseType { get; }

Methods

HandlePastedTextAsync(String)

View Source
Declaration
protected virtual async Task HandlePastedTextAsync(string txt)
Returns

Task

Parameters
TypeName
System.Stringtxt

OnParametersSetAsync()

View Source
Declaration
protected override async Task OnParametersSetAsync()
Returns

Task

SetParametersAsync(ParameterView)

View Source
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Returns

Task

Parameters
TypeName
ParameterViewparameters

Inherited Methods

CssClass(String, String)

View Source
Declaration
protected override string CssClass(string valid = null, string invalid = null)
Returns

System.String

Parameters
TypeName
System.Stringvalid
System.Stringinvalid

OnValidateStateChanged(Object, AspNetCore.Components.Forms.ValidationStateChangedEventArgs)

View Source
Declaration
protected void OnValidateStateChanged(object sender, AspNetCore.Components.Forms.ValidationStateChangedEventArgs eventArgs)
Parameters
TypeName
System.Objectsender
Microsoft.AspNetCore.Components.Forms.ValidationStateChangedEventArgseventArgs

StateClasses(String, String)

View Source
Declaration
protected override string StateClasses(string valid = null, string invalid = null)
Returns

System.String

Parameters
TypeName
System.Stringvalid
System.Stringinvalid

UpdateAdditionalValidationAttributes()

View Source
Declaration
protected void UpdateAdditionalValidationAttributes()